import { callApi } from './base'
import { MIDEA_USER } from '@/config/constants'

/**
 * 获取Native端的用户信息
 * @returns Promise
 */
function getUser (): Promise<any> {
  return callApi(MIDEA_USER, 'getUser', [])
}

/**
 * @description: 注销
 * @param {*}
 * @return {*}
 */
function logout (): Promise<any> {
  return callApi(MIDEA_USER, 'logout', [])
}

export {
  getUser,
  logout
}
